/* 小程序作文批改应用样式 */
:root {
  --primary-color: #4CAF50;
  --secondary-color: #FFC107;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
  --white: #ffffff;
  --error: #f44336;
  --success: #4CAF50;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
  color: var(--text-color);
}

.device-container {
  width: 390px;
  height: 844px;
  background-color: var(--white);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 20px;
  border: 12px solid #111;
}

.status-bar {
  height: 44px;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
}

.status-bar .time {
  flex: 1;
  text-align: center;
}

.status-bar .icons {
  display: flex;
  gap: 5px;
}

.app-content {
  height: calc(100% - 44px - 83px);
  overflow-y: auto;
  background-color: var(--light-gray);
}

.tab-bar {
  height: 83px;
  background-color: var(--white);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--medium-gray);
  padding-bottom: 20px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 25%;
  color: var(--dark-gray);
  font-size: 12px;
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item i {
  font-size: 24px;
  margin-bottom: 4px;
}

.btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-block {
  display: block;
  width: 100%;
}

.container {
  padding: 20px;
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-2 {
  gap: 8px;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.upload-area {
  border: 2px dashed var(--medium-gray);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--primary-color);
}

.upload-icon {
  font-size: 48px;
  color: var(--dark-gray);
  margin-bottom: 16px;
}

.correction-result {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.correction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.score {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

.badge-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.badge-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.divider {
  height: 1px;
  background-color: var(--medium-gray);
  margin: 16px 0;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.points-card {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.points-icon {
  font-size: 32px;
  margin-right: 16px;
}

.points-info {
  flex: 1;
}

.points-value {
  font-size: 24px;
  font-weight: 700;
}

.points-label {
  font-size: 14px;
  opacity: 0.8;
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.recharge-option {
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recharge-option:hover,
.recharge-option.active {
  border-color: var(--primary-color);
  background-color: rgba(76, 175, 80, 0.05);
}

.recharge-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.recharge-points {
  font-size: 14px;
  color: var(--dark-gray);
}

.list-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--medium-gray);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(76, 175, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-right: 16px;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.list-item-subtitle {
  font-size: 14px;
  color: var(--dark-gray);
}

.list-item-action {
  color: var(--dark-gray);
}

.feedback-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--primary-color);
}

.essay-text {
  line-height: 1.8;
  margin-top: 16px;
  white-space: pre-wrap;
}

.highlight {
  background-color: rgba(255, 193, 7, 0.2);
  padding: 0 2px;
}

.error-text {
  color: var(--error);
  text-decoration: underline wavy var(--error);
} 